ci: Use -fsanitize=undefined by default
authorColin Walters <walters@verbum.org>
Thu, 27 Oct 2016 17:51:55 +0000 (13:51 -0400)
committerAtomic Bot <atomic-devel@projectatomic.io>
Fri, 28 Oct 2016 17:47:50 +0000 (17:47 +0000)
It's fast enough to use for CI testing by default, and it
can catch a lot of bad things.

Closes: #552
Approved by: jlebon

.redhat-ci.yml

index da69f97a6b99f8f5d739104bb73d7dc4fc01825f..f2a0cfe97242380032853c5324700835969b8ef6 100644 (file)
@@ -6,12 +6,16 @@ branches:
 container:
     image: projectatomic/ostree-tester
 
+packages:
+  - libubsan
+
 tests:
     - sh autogen.sh
         --prefix=/usr
         --libdir=/usr/lib64
         --enable-installed-tests
         --enable-gtk-doc
+        CFLAGS='-fsanitize=undefined'
     - make -j2
     - make syntax-check
     - make check